package com.bgs.eat.userProtal.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @ClassName UserProtalEntity
 * @Description TODO
 * @Author lzy
 * @Date 2022/10/10 16:47
 **/
@Data
@Table(name = "user_protal")
public class UserProtalEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    private String userName;    // 账号

    private String nickName;    // 账号昵称

    private String password;    // 密码

    private String phone;   // 联系电话

    private String mail;    //邮箱

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime; // 创建时间

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;  //生日

    private Integer delFlag;    // 是否删除 0未删除 1已删除

    private Integer age;    // 年龄

    private Integer sex;    // 性别

    private Integer avatarId; // 头像id

    private Integer role; // 用户角色

    //审批id
    private Integer auditId;

    // 自我介绍
    private String introduction;

    // 支付宝绑定账号
    private String alipayLoginName;
}
